package com.lpit;


import com.lpit.mapper.ArticleMapper;
import com.lpit.pojo.Article;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

@SpringBootTest
public class Wrappers {

    @Autowired
    ArticleMapper articleMapper;
    @Test
    void test(){
        List<Article> articleList = articleMapper.selectList(com.baomidou.mybatisplus.core.toolkit.Wrappers.lambdaQuery(Article.class).like(Article::getArticleTitle, "三"));
        System.out.println("articleList = " + articleList);
    }


}
